<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
   <head>
      <title>Aprobaci&oacute;n de &Oacute;rdenes de Trabajo</title>
      <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="author" content="Moises Canche Tzab - Sybil Integraciones TI">
      <link rel="shortcut icon" type="image/x-icon" href="recursos/images/favicon.ico" >
      <style type="text/css">
         body {font-size: 8pt;font-family: Arial,Helvetica,sans-serif;padding: 0;margin: 0;
               background-color: #f0f0f0;background-repeat:no-repeat;
               background-attachment:fixed;background-position:center;}
         #login_div {position: absolute; top: 50%; left: 30%; padding: 5%; margin: 5%;}
      </style>
      <script type="text/javascript">
         function validar() {
            if (document.frm_login.j_username.value.length < 3) {
               alert("Introduce tu usuario");
               document.frm_login.txt_login.focus();
               return false;
            }
            if (document.frm_login.j_password.value.length < 3) {
               alert("Ingresa tu Contrase\u00F1a");
               document.frm_login.txt_contrasena.focus();
               return false;
            }
            return true;
         }
      </script>
   </head>
   <body onload="document.frm_login.j_username.focus();">
      <h3>Autentificarse con su usuario y contrase&ntilde;a de SIC</h3>
      <!--[if lt IE 7]>
      <p class="chromeframe">You are using an outdated browser. 
      <a href="http://browsehappy.com/">Upgrade your browser today</a> 
      or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> 
      to better experience this site.</p>
      <![endif]-->
      <div id="login_div">
         <form name="frm_login" action="${pageContext.request.contextPath}/j_spring_security_check" method="POST">
            <table>
               <tr><td>Usuario:</td><td><input type="text" name="j_username"></td></tr>
               <tr><td>Contrase&ntilde;a:</td><td><input type="password" name="j_password"/></td></tr>
               <tr><td colspan="2"><input type="submit" value="Entrar"/></td></tr>
               <tr>
                  <td colspan="2">
                     <%=request.getAttribute("error") == null ? ""
                             : request.getAttribute("error")%>
                     ${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}
                  </td>
               </tr>
            </table>
         </form>
      </div>
   </body>
</html>